import VueRouter from 'vue-router'

import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'


import newsList from './components/news/newsList.vue'
import newsInfo from './components/news/newsInfo.vue'

// 图片分享
import photoShare from './components/photos/photoShare.vue'
import photoInfo from './components/photos/photoInfo.vue'

// 商品列表
import goodsList from './components/goods/goodsList.vue'
import goodsInfo from './components/goods/goodsInfo.vue'
var router =new VueRouter({
    routes:[
        { path: '/', redirect: '/home' },
        {path: '/home',component:HomeContainer},
        {path: '/member',component:MemberContainer},
        {path: '/shopcar',component:ShopcarContainer},
        {path: '/search',component:SearchContainer},
        {path: '/home/newsList',component:newsList},
        {path: '/home/newsInfo/:id',component:newsInfo},
        {path: '/home/photoShare',component:photoShare},
        {path: '/home/photoInfo/:id',component:photoInfo},
        {path: '/home/goodsList',component:goodsList},
        {path: '/home/goodsInfo/:id',component:goodsInfo}
    ],
    linkActiveClass:'mui-active'
})


export default router


